//
// Created on 2024/3/18.
//
// Node APIs are not fully supported. To solve the compilation error of the interface cannot be found,
// please include "napi/native_api.h".

#ifndef OHOS_OHOSWEBWEBVIEWHANDLER_H
#define OHOS_OHOSWEBWEBVIEWHANDLER_H
#include "napi/adapter/WebviewHandler.h"
class OhosWebviewHandler: WebviewHandler{
    public:
        OhosWebviewHandler();
        virtual void onShouldStartLoadingEvent(int32_t id, const char *url);
        virtual void onFinishLoadingEvent(int32_t id, const char *url);
        virtual void onFailLoadingEvent(int32_t id, const char *url);
        virtual void onJsCallbackEvent(int32_t id, const char *url);
};

#endif //OHOS_OHOSWEBWEBVIEWHANDLER_H
